package org.demo.domain.response;

import java.io.Serializable;

public class ResponseEnvelope <T extends Object> implements Serializable {

	/* ---- Constants ---- */
	private static final long serialVersionUID = 201202272116L;

	/* ---- Instance Variables ----*/

	private ResponseHeader responseHeader = null;
	private ResponseBody<T> responseBody = null;

	/* ---- Constructors ---- */

	public ResponseEnvelope() {
		super();
	}

	public ResponseEnvelope(ResponseHeader responseHeader, ResponseBody<T> responseBody) {
		this.responseHeader = responseHeader;
		this.responseBody = responseBody;
	}

	/* ---- Getters and Setters ----*/

	/**
	 * @return the responseHeader
	 */
	public ResponseHeader getResponseHeader() {
		return responseHeader;
	}
	/**
	 * @param responseHeader the responseHeader to set
	 */
	public void setResponseHeader(ResponseHeader responseHeader) {
		this.responseHeader = responseHeader;
	}
	/**
	 * @return the responseBody
	 */
	public ResponseBody<T> getResponseBody() {
		return responseBody;
	}
	/**
	 * @param responseBody the responseBody to set
	 */
	public void setResponseBody(ResponseBody<T> responseBody) {
		this.responseBody = responseBody;
	}

}
